CVE-2017-5941
"Apache Node-serialize Deserialization Remote Code Execution"
Description
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Untrusted data passed into the unserialize() function can be exploited to achieve arbitrary code execution by passing a JavaScript Object with an Immediately Invoked Function Expression (IIFE).
INFO
Published Date :
Feb. 9, 2017, 7:59 p.m.
Last Modified :
May 13, 2026, 12:24 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 2.0 | HIGH | [email protected] | ||||
| CVSS 3.1 | CRITICAL | [email protected] |
Public PoC/Exploit Available at Github
CVE-2017-5941 has a 33 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-5941.
| URL | Resource |
|---|---|
| http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
| http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html | |
| http://www.securityfocus.com/bid/96225 | Third Party Advisory VDB Entry |
| https://nodesecurity.io/advisories/311 | Third Party Advisory |
| https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ | Exploit Third Party Advisory |
| http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
| http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html | |
| http://www.securityfocus.com/bid/96225 | Third Party Advisory VDB Entry |
| https://nodesecurity.io/advisories/311 | Third Party Advisory |
| https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ | Exploit Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-5941 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-5941
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
JavaScript Java Kotlin Python
None
JavaScript
None
JavaScript Dockerfile Ruby
Independent cybersecurity portfolio — grey-box assessment, SSRF study, and hands-on exploitation walkthroughs against authorized targets.
bug-bounty cybersecurity owasp penetration-testing portfolio security-research vulnerability-assessment web-security
PowerShell
None
Shell
None
Dockerfile JavaScript
None
Dockerfile CSS JavaScript EJS
MCP server that audits AI-generated code with real-attacker techniques, then fixes only what you check. 155 rules, 5 AST auto-fixes, SARIF export.
ai-security claude claude-code code-review llm-security mcp mcp-server nextjs prompt-injection sast security security-scanner static-analysis typescript vulnerability-scanner
TypeScript Python Java JavaScript Dockerfile HCL Vue Svelte
ICS 344 project exploring and exploiting security vulnerabilities in the OWASP DVSA (Damn Vulnerable Serverless Application), with a focus on AWS serverless systems, attack analysis, and mitigation techniques.
Python Shell
Intentionally vulnerable app to trigger CodeQL, Dependabot, Secret Scanning, and other security scanning tools.
Dockerfile JavaScript HCL
167 validated malicious file upload exploits covering 12 vulnerability classes and 31 Docker testbed stacks. Every file produces a real exploit signal. Zero theoretical payloads.
Makefile Shell TeX PostScript Java Perl PHP HTML Python EJS
TigerGate Test Project – A multi-language security testing lab designed to simulate real-world cloud-native application vulnerabilities across Code, CI/CD, Cloud, Containers, Runtime, and Identity layers. Built for validating CNAPP platforms like TigerGate through practical DevSecOps scenarios.
Makefile HCL Python JavaScript Dockerfile Shell Java PHP Ruby HTML
None
TypeScript CSS JavaScript Python Jac
SAST Demo Projects - Intentionally vulnerable applications for demonstrating and evaluating Static Application Security Testing (SAST) tools
Python TypeScript Java
Repository for testing vulnerable applications and blocking pipelines via SRG.
Dockerfile JavaScript EJS Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-5941 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2017-5941 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Status Change by [email protected]
May. 13, 2026
Action Type Old Value New Value -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html Added Reference http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html Added Reference http://www.securityfocus.com/bid/96225 Added Reference https://nodesecurity.io/advisories/311 Added Reference https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Jun. 22, 2021
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/163222/Node.JS-Remote-Code-Execution.html [No Types Assigned] -
Modified Analysis by [email protected]
Feb. 14, 2021
Action Type Old Value New Value Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry Changed Reference Type http://www.securityfocus.com/bid/96225 No Types Assigned http://www.securityfocus.com/bid/96225 Third Party Advisory, VDB Entry Changed Reference Type https://nodesecurity.io/advisories/311 Vendor Advisory https://nodesecurity.io/advisories/311 Third Party Advisory Changed Reference Type https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ Broken Link https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ Exploit, Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:node-serialize_project:node-serialize:0.0.4:*:*:*:*:node.js:*:* OR *cpe:2.3:a:node-serialize_project:node-serialize:*:*:*:*:*:node.js:*:* versions up to (including) 0.0.4 -
CVE Modified by [email protected]
Feb. 10, 2021
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/161356/Node.JS-Remote-Code-Execution.html [No Types Assigned] -
CVE Modified by [email protected]
Mar. 01, 2017
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/96225 [No Types Assigned] -
Initial Analysis by [email protected]
Feb. 28, 2017
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ No Types Assigned https://opsecx.com/index.php/2017/02/08/exploiting-node-js-deserialization-bug-for-remote-code-execution/ Broken Link Changed Reference Type https://nodesecurity.io/advisories/311 No Types Assigned https://nodesecurity.io/advisories/311 Vendor Advisory Added CWE CWE-502 Added CPE Configuration OR *cpe:2.3:a:node-serialize_project:node-serialize:0.0.4:*:*:*:*:node.js:*:*